<?php
	chong_pha_hoai();
	switch($_GET['thamso']){
		case "timkiem":
			include("chuc_nang/timkiem/timkiem.php");
		break;
		case "dangky":
			include("chuc_nang/dangky_dangnhap/dangky.php");
		break;
		case "gio_hang":
			include("chuc_nang/gio_hang/gio_hang.php");
		break;
		case "xuat":
			$id=$_GET['id'];
			$tv="select * from loaisp where id_loaisp='$id'";
			$tv_1=mysql_query($tv);
			$tv_2=mysql_fetch_array($tv_1);
			echo "<div class='title_contain'>";
				echo $tv_2['ten_loaisp'];
			echo "</div>";
			include("chuc_nang/san_pham/xuat.php");
		break;
		case "load":
			$id=$_GET['id_load'];
			$tv="select * from loaisp where id_loaisp='$id'";
			$tv_1=mysql_query($tv);
			$tv_2=mysql_fetch_array($tv_1);
			echo "<div class='title_contain'>";
				echo $tv_2['ten_loaisp'];
			echo "</div>";
			include("chuc_nang/san_pham/xuat.php");
		break;
		case "chi_tiet_san_pham":
			include("chuc_nang/san_pham/xuat_ct_sanpham.php");
		break;
		case "gioithieu":
			include("chuc_nang/gioithieu.php");
		break;
		default:
			xuat_sp_moi_nhat();
			xuat_ra_trang_index(17);
			xuat_ra_trang_index(23);
			xuat_ra_trang_index(20);
			xuat_ra_trang_index(18);
			xuat_ra_trang_index(19);
	}
?>
	
